import time

from tools.base_page import BasePage


class Public_Catdm(BasePage):

    def select_zb_option(self):  # 选择指标选项
        self.open_yaml_element('../data/public_catdm.yaml', 'zhibiao_option')
        time.sleep(2)
        self.selector_execute_script('body>div:nth-of-type(3)>div>div>div>ul>li')
        return True

    def add_fp(self):  # add分配
        self.select_zb_option()
        time.sleep(2)
        #self.open_yaml_element('../data/public_catdm.yaml', 'add_fp')
        self.selector_execute_script('.ant-btn-block>span')
        time.sleep(4)

    def gaoji_query(self):  # 高级查询
        pass